﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OConf.Entity
{
    public class CNameSpaceEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [Key, Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string ID { get; set; }

        /// <summary>
        /// NameSpace
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string NameSpace { get; set; }

        /// <summary>
        /// 项目编号
        /// </summary>
        [Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string ProjectID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "datetime"), Required]
        public DateTime Createtime { get; set; }

        /// <summary>
        /// 是否发布
        /// </summary>
        [Column(TypeName = "tinyint(1)"), Required]
        public bool IsPublish { get; set; }
    }
}
